<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
	<p:messages autoUpdate="true" />
	<h:form>
		<p:commandButton process="@form" update="values" action="#{customerMaintBean.minimumConditionChecking()}" value="Minimumfeltétel kiértékelés" disabled="#{customerMaintBean.loanApplication.status gt 1}" />
		<p:fieldset id="values">
			<h:panelGrid columns="2">

				<p:outputLabel value="Jövedelem" />
				<p:graphicImage rendered="#{customerMaintBean.loanApplication.isIncomeAmountEnough}" library="img" name="approved_2.png" />
				<p:graphicImage rendered="#{!customerMaintBean.loanApplication.isIncomeAmountEnough}" library="img" name="disapproved_2.png" />

				<p:outputLabel value="Munkaviszony hossza" />
				<p:graphicImage rendered="#{customerMaintBean.loanApplication.isLengthOfEmployementEnough}" library="img" name="approved_2.png" />
				<p:graphicImage rendered="#{!customerMaintBean.loanApplication.isLengthOfEmployementEnough}" library="img" name="disapproved_2.png" />

				<p:outputLabel value="Életkor" />
				<p:graphicImage rendered="#{customerMaintBean.loanApplication.isAgeEnough}" library="img" name="approved_2.png" />
				<p:graphicImage rendered="#{!customerMaintBean.loanApplication.isAgeEnough}" library="img" name="disapproved_2.png" />

				<p:outputLabel value="Minimumkiértékelésen megfelelt" />
				<p:graphicImage rendered="#{customerMaintBean.loanApplication.isMinimumConditionApproved}" library="img" name="approved_2.png" />
				<p:graphicImage rendered="#{!customerMaintBean.loanApplication.isMinimumConditionApproved}" library="img" name="disapproved_2.png" />
				<p:graphicImage rendered="#{!customerMaintBean.loanApplication.isMinimumConditionApproved}" value="" />
			</h:panelGrid>
		</p:fieldset>
	</h:form>
</ui:composition>